﻿@model IEnumerable<CharacterCreation.Business.ViewModels.VMSpecial>

@{
    ViewBag.Title = "Index";
}

<p>
    @Html.ActionLink("Create New", "Create")
</p>

<div class="datatable">
    <table>
        <tr>
            <th class="main-column">
                Name
            </th>
            <th>
                Priority points
            </th>
            <th>
                Statistics
            </th>
            <th>
                Category
            </th>
            <th></th>
        </tr>

    @foreach (var item in Model) {
        <tr>
            <td class="main-column">
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.PriorityPoints)
            </td>
            <td>
                @item.StatisticsDisplay
            </td>
            <td>
                @item.CategoryDisplay
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
                @Html.ActionLink("Details", "Details", new { id=item.Id }) |
                @Html.ActionLink("Delete", "Delete", new { id=item.Id })
            </td>
        </tr>
    }
    </table>
</div>